Pdomain

Section: Oct. 1, 1991 (2)
Updated: MiNT Programmer's Manual
Index Return to Main Contents
 

NAME

Pdomain - get or set process execution domain  

SYNOPSIS

WORD Pdomain( WORD dom );
 

DESCRIPTION

Pdomain gets or sets the process execution domain. This is a number which controls the behavior of a process. The default domain is 0, which is the TOS compatibility domain and in which all system calls behave exactly as they do under TOS. Domain 1 is the MiNT domain; in this domain, the behavior of the Fread and Fwrite system calls when applied to terminals are controlled by the current terminal settings as established by the Fcntl system call. Moreover, file names returned from Fsfirst and Fsnext may be treated differently; MiNT domain processes are expected to be able to deal with file names that are not standard 8 character name + 3 character extension, all upper case, DOS file names.

If dom is greater than or equal to 0, the process domain is set to its value. Note that only domains 0 and 1 are currently defined, and the result of using a different (positive) number for dom is unpredictable. If dom is negative, no change is made to the process domain.  

RETURNS

The process domain at the time of the Pdomain call (i.e. before any change).


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS

This document was created by man2html, using the manual pages.
Time: 16:01:23 GMT, March 03, 2023